package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.pojo.AddMuchFieldPojo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.team.TeamAfterVerifyDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/3/2 11:24
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class AddBatchDTO extends BaseDTO {

    private static final long serialVersionUID = 7333022783768980557L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.addBatch.appId.NotNull}")
    private Long appId;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.addBatch.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * saas业务类型
     */
    private Integer businessType;

    /**
     * 需要添加的数据
     */
    private List<AddMuchFieldPojo> addBatchList;

    /**
     * 需要更新的数据
     */
    private List<AddMuchFieldPojo> updateBatchList;

    /**
     * 删除的数据
     */
    private List<AddMuchFieldPojo> delBatchList;

    private List<ValidateDataDTO> validateDataDTOList;
    /**
     * 本次批量添加的金额
     */
    private Double amount;
}
